<?php
//获取基本信息	
//登陆
$this->group(['domain' => env('DOMAIN_TOUCH'),'prefix' => 'home'], function() {
	//获取基本信息、只有昵称和头像
    $this->get('/baseinfo', 'IndexController@baseInfo');
    //获取所有基本信息
    $this->get('/info', 'IndexController@info');
    //更新用户信息
    $this->post('/infosave', 'IndexController@infoSave');
});

//账号管理
$this->group(['domain' => env('DOMAIN_TOUCH'),'prefix' => 'home/account'], function() {
	$this->post('/checkphone', 'AccountController@checkPhoneBind');
	//发送绑定用户手机号验证码
	$this->post('/send/bind/phonecode', 'AccountController@sendBindPhoneCode');
	//绑定手机号号码
	$this->post('/bindphone', 'AccountController@bindPhone');
	//更新登录密码
	$this->post('/updatepwd', 'AccountController@updatePwd');
});

//地址管理
$this->group(['domain' => env('DOMAIN_TOUCH'),'prefix' => 'home/address'], function() {
	//更新用户地址
	$this->post('/', 'AddressController@postUpdate');
	//获取所有地址列表
	$this->get('/all/district', 'AddressController@getAllDistrict');
	//获取列表数据
	$this->get('/', 'AddressController@getList');
	//获取单个数据
	$this->get('/{id}', 'AddressController@getOne')->where('id','[0-9]+');
	//更新用户地址
	$this->delete('/', 'AddressController@delOne');

});




